package graphicinterface;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JLabel;

/**
 * defines the default style for all labels used by our system.
 * It makes changing text style for all labels used by our system much more
 * easy.
 */
public class TextLabelCreator 
{
	public static JLabel createStyledTextlabel(String text)
	{
		return createStyledTextlabel(text, 20, new Color(189, 0, 111));
	}
	
	public static JLabel createStyledTextlabel(String text, int fontSize)
	{
		return createStyledTextlabel(text, fontSize, new Color(189, 0, 111));
	}
	
	public static JLabel createStyledTextLabel(String text, Color colorText)
	{
		return createStyledTextlabel(text, 20, colorText);
	}
	
	public static JLabel createStyledTextlabel(String text, int fontSize, Color colorText)
	{
		JLabel newLabel = new JLabel();
		newLabel.setFont(new Font("Showcard Gothic", 1, fontSize));
		newLabel.setForeground(colorText);
		newLabel.setText(text);
		return newLabel;
	}

}
